home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / pnmrotate.1 < prev    next >
Text File  |  1995-07-25  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4.      ppppnnnnmmmmrrrroooottttaaaatttteeee((((1111))))    XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((11112222 JJJJaaaannnnuuuuaaaarrrryyyy 1111999999991111))))     ppppnnnnmmmmrrrroooottttaaaatttteeee((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           pnmrotate - rotate a portable anymap by some angle
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ppppnnnnmmmmrrrroooottttaaaatttteeee [----nnnnooooaaaannnnttttiiiiaaaalllliiiiaaaassss] _a_n_g_l_e [_p_n_m_f_i_l_e]
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.           Reads a portable anymap as input.  Rotates it by the
  16.           specified angle and produces a portable anymap as output.
  17.           If the input file is in color, the output will be too,
  18.           otherwise it will be grayscale.  The angle is in degrees
  19.           (floating point), measured counter-clockwise.  It can be
  20.           negative, but it should be between -90 and 90.  Also, for
  21.           rotations greater than 45 degrees you may get better results
  22.           if you first use _p_n_m_f_l_i_p to do a 90 degree rotation and then
  23.           _p_n_m_r_o_t_a_t_e less than 45 degrees back the other direction
  24.  
  25.           The rotation algorithm is Alan Paeth's three-shear method.
  26.           Each shear is implemented by looping over the source pixels
  27.           and distributing fractions to each of the destination
  28.           pixels.  This has an "anti-aliasing" effect - it avoids
  29.           jagged edges and similar artifacts.  However, it also means
  30.           that the original colors or gray levels in the image are
  31.           modified.  If you need to keep precisely the same set of
  32.           colors, you can use the ----nnnnooooaaaannnnttttiiiiaaaalllliiiiaaaassss flag.  This does the
  33.           shearing by moving pixels without changing their values.  If
  34.           you want anti-aliasing and don't care about the precise
  35.           colors, but still need a limited *number* of colors, you can
  36.           run the result through _p_p_m_q_u_a_n_t.
  37.  
  38.           All flags can be abbreviated to their shortest unique
  39.           prefix.
  40.  
  41.      RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
  42.           "A Fast Algorithm for General Raster Rotation" by Alan
  43.           Paeth, Graphics Interface '86, pp. 77-81.
  44.  
  45.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  46.           pnmshear(1), pnmflip(1), pnm(5), ppmquant(1)
  47.  
  48.      AAAAUUUUTTTTHHHHOOOORRRR
  49.           Copyright (C) 1989, 1991 by Jef Poskanzer.
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 9/7/93)
  64.  
  65.  
  66.  
  67.